<%--
  Created by IntelliJ IDEA.
  User: 29859
  Date: 2023/11/12
  Time: 8:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>得到请求参数</title>
</head>
<body>
<%
    byte[] byteName = request.getParameter("name").getBytes("ISO-8859-1");
    String name = new String(byteName, "UTF-8");
    String id = request.getParameter("id");
%>
<h1>第一个请求参数:<%=name%>
</h1>
<h1>第二个请求参数:<%=id%>
</h1>
<h2>请求url:<%= request.getRequestURL()%>
</h2>
</body>
</html>
